package day240530.pro.notificator;

import day240530.pro.until.MyEmailUtil;

public class NotificatorEmail extends Notificator{

        @Override
        public void send(String to, String msg) {
            try {
                msg = msg.replaceAll("\\n", "<br>");
                MyEmailUtil.send(to, msg);
            } catch (Exception e) {
                System.out.println("邮件发送失败！！！");
                throw new RuntimeException(e);

        }
    }
}
